home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mastering Web Site Development
/
Microsoft Mastering Web Site Development (Microsoft) (1997).iso
/
Labs
/
StateUFinal
/
getfeedback.asp
< prev
next >
Wrap
Text File
|
1997-04-24
|
3KB
|
76 lines
<%@ LANGUAGE="VBSCRIPT" %>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="Include1" WIDTH=150 HEIGHT=23
CLASSID="CLSID:F602E725-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3175">
<PARAM NAME="_ExtentY" VALUE="508">
<PARAM NAME="_StockProps" VALUE="0">
<PARAM NAME="Source" VALUE="adovbs.inc">
</OBJECT>
-->
<!--#INCLUDE FILE="adovbs.inc"-->
<!--METADATA TYPE="DesignerControl" endspan-->
<% frmResponse = request("response") %>
<% frmEase = request("ease") %>
<% frmInteractive = request("interactive") %>
<% frmUseful = request("useful") %>
<% on error resume next
'-- Establish Connection to Database
Set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionTimeout = Session("StateU_ConnectionTimeout")
conn.CommandTimeout = Session("StateU_CommandTimeout")
conn.Open Session("StateU_ConnectionString"), _
Session("StateU_RuntimeUserName"), _
Session("StateU_RuntimePassword")
'-- Add feedback from client as new record
strSQL = "INSERT INTO feedback " & _
"(Response, Useful, Interactive, Ease)" & _
" VALUES (" & frmResponse & "," & frmUseful & _
"," & frmInteractive & "," & frmEase & ")"
conn.execute strSQL
'-- Check that record was added successfully
if err.number <> 0 then
session("ErrorTitle") = "Feedback Form"
session("ErrorText") = "The feedback could not be entered because of the following unexpected error:<p>"&err.description
response.redirect "error.asp"
end if
%>
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft Developer Studio">
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Get Feedback Active Server Page</title>
<link rel="STYLESHEET" href="Stylesheets/Grid/Style2.css">
</head>
<body background="Images/Grid/Background/Back2.jpg"
bgcolor="White">
<basefont face="Arial, Helvetica, sans-serif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="Left" nowrap bgcolor="Silver"
background="./Images/Grid/Navigation/Nav1.jpg"> <font
size="6"> Feedback </font> </th>
</tr>
<tr>
<td bgcolor="#FFFFCC"> <font size="-1">
Feedback recorded</font> </td>
</tr>
</table>
<p>
Your feedback has been recorded and will help us make improvements
to this website in the future.
<p>
Thank you!
</BODY>
</HTML>